﻿#include "bslLabelAndDoubelEdit.h"
#include "ui_bslLabelAndDoubelEdit.h"

bslLabelAndDoubelEdit::bslLabelAndDoubelEdit(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::bslLabelAndDoubelEdit)
{
    ui->setupUi(this);


    pLabel              = new QLabel(this);
    QPalette TempPalette = QPalette();


    pLineEditDouble     = new QLineEdit(this);
    pLineEditDouble->setFixedHeight(60);
    pLineEditDouble->setMaximumWidth(300);

    pHBoxLayout         = new QHBoxLayout(this);


    pHBoxLayout->addWidget(pLabel,1);
    pHBoxLayout->addWidget(pLineEditDouble,1);
    setLayout(pHBoxLayout);
}



bslLabelAndDoubelEdit::~bslLabelAndDoubelEdit()
{
    delete ui;
}



void bslLabelAndDoubelEdit::mSetBacgroundColr(QColor Color)
{
    QPainter* pQPainter = new QPainter(this);
    pQPainter->fillRect(pLabel->rect(),Color);
    pQPainter->fillRect(pLineEditDouble->rect(),Color);
}
